updated for sinatra