added the global module namespace and an API for creating and removing modules