partially complete stuff for a new way to load the environment