add dump and restore support