add safety for malformed mirrorlists