added type and domain functions to event module; raise error to no where when ruleset not found (needs fixed)