add versionMatches func and detect if 2.3