add dependencies for event