event_mapper: implemented react()

linting for singularity & event_mapper