getting it closer to the original cfg format/ordering/whitespacing etc