fix throwErrors to be explicit alert helper