added: api server structure for refactoring