add CF trajectory writing (1)