load sinatra middleware