implemented simultaneous compatibility with Rails and Sinatra