add api and export