trying to write a settings file