It was not until the threat of invasion by the forces of Spain in 1585 that lieutenants were appointed to all counties . However , it was not until the threat of invasion by the forces of Spain in 1585 that lieutenants were appointed to all counties and counties corporate and became in effect permanent .