conf parsing nearly there.... weird issue with writing tags to file