expose to exports, fallback to window