rml: separating segment modification into const functions
rml: adding full actionlib support