making the environment key configurable