writing conf to file