pass eventPaths and event flags to the specified callback program