replace cache in repos with run_state store
update metadata