add a few helper functions to the env namespace and alter how env is
refered to.