hooking up api server