ast pass to determine envs