config: make parsing stack struct independent from actual data source