fixed issue with retrieving trajectories incorrectly, and put down a todo to change how to switch recording modes
ignores swp files