pass in global as `this` to modules