adding modes for ruby with sinatra