more changes for ROS segment generation