adjust routes so that it will also pass additional middleware