added the ability to use objects for events