feature: use listening event for foreground process if applicable