make better error handling for missing version