better support for the reloading of the main modules