clean up config file