fixed module registration helper functions
new module registration works again