added get_api, added internal_dispatch