done base coffeescript middleware