implemented settings that can be overridden by env vars