support for piecewise trajectories
appease the testthat gods