auto  generate conf file