improved witing of user configuration file