read and modify sinatra code