some handling for exception cases