swithing to koajs, mongoose extensions, code optimization