Refs #10: remove pc.save_prim and make pc.recovery to control write state file or not