add PBS dir, fix eig_pair by sorting