working master and traj nodes