made global object avilable in modules for consistency with nodejs