added support for module loading and fixed some stuff with bad channel removal