trying to get it to work with sinatra