cleaned up DomainModel base class.