testing/refining cfg structure reader/writer