third argument support for envs in compile