updates/read metadata