change config to .cnf file