more validity checks on bboxes