convert to sinatra app