Avoid issues with Heroku
Use uniform format for refnums in settles
Fix errors introduced by not testing