functionize parse_trajectories

enable running multiple datasets side by side