changes to be more JRuby specific for Heroku