add event mapping.