converted to Sinatra