refactor for dependency version verification