added vector serialization