minor bug fix for capturing pending callcenter events, & code cleanup