reimplemented basic functionality on koa framework