start work on runtime seg mapper
corrected merge issue