collapse vector of multiple elements into a single path
minor
serialize and unserialize