bug fixes to refactor
hash accessible from model class
minor bug fixes from refactoring