removing a module type, registering others