re-did appEnv to cache the values.