added support for events on path objects