improved error handling around bad versions