fwiw, this can be simplified to return ret.map(unpackObjects)