modifications to use unique time records. not sure if this works yet
Merge branch 'inout' into do3d2