checks for necessary errors. minimal logging