update util 
add function to convert arrays to objects