add coffee-middleware