factor out default metadata_path;prep for snapshot