add pfEvent callback implementation.