Overall improvements to sandboxing, and loading of dependancies