change way to exports
Merge pull request #2 from yosukedoke/add-mode-switch

change way to exports