improve better handling of arrays in util