moved version_compare conditions into class version
added single-component-scan