check for global exports object