basic infra for creating an api server