added code to ensure the saved trajectory has timing information