improve SP Version Detection