now it writes ip to config