sinatra works with a bit of a hack