update to new global env interface
use env/ensure instead of env/with-env
make global-env a function so it will always return an updated env