extracted sinatra app