moved keys out of env; some aliasing