detects version info in the url/headers and populates the prereq object