fixing nested envs object