basic global module pattern for better portability