added error handling around importing the visual studio tools environment
mass refactoring