actually check for errors