changes for refactor to sinatra app