moves paths methods to a helper.rb