remove duplicate code associated with loadAssembly