final update on the writing to config file