working on load environment

took a lot of stuff out of main, working on making the environment part
of load project work