fix traj verifier and added debug msg