Bring cardio beck up to speed with newer libraries
Slightly improved error handling