api server almost done