some refactorings and adding the ability to delete an assembly