corrected conf file saving