added support for bboxes