adding new middleware and updating coffeescript