minor tweak to detect version