support for deep env inheritance