using sharedmap to communicate handlers