add debugging and made enum static in domain object