make exports a global
refactor Module