format config file