be a bit more assertive on error