read required version from query string, and fix version comparator