replace constants with Environment Object