add support for map segment creation