added support for handling multiple event definitions for global animations