maybe we can move this map into a common package seems to be useful