reload or unload module, todo: move these functions to core
unload or reload modules