exports.global has to be defined before it can be used