bugfix: removed use of the module() function to prevent bad side-effects.