updated receiver to accept event data