fix koa bugs. expose files object.