added traj file stuff