add start/end in path object