fix issues with complex i/o and bbox input