better logging for returned arrays.