fix to work with new version of sinatra