NEW: check inheritance of modules to be loaded
Merge pull request #1449 from graciani/bugfix

NEW: check inheritance of modules to be loaded