tweaking to support sinatra testing