add servies resources, rules event, and hooks.