More work on trajectory I/O