fixing up some stuff, adding an env-dump thing