better structure sinatra helpers