swap to api server