updated settings class to user environment variables