check all possible errors