adjusted for mem leak
changed up logging in rails to take advantage of heroku logging for STDOUT