additional checks for errors