added first iteration of api server, dont use in production