save and load setting to environment, implement notificationenabled