filter corner case
more useful error messages. #157