some traj opt modifications