fixing settings to write to env config