hero sinatra middleware