add option to deactivate domain events