make it work with Sinatra