some research on using sinatra as the client