added bbox intersectipon checks to complex queries