API: better error messages