added an event processor (for motion)