trying to understand heroku circular reference failure