moved settings to env