conversion to sinatra app