fixed a bug where static module functions were visible from outside the module