tweaks to version checking on dependency