env now exposes an object interface; less elegant but easier to use