implement auto-save in single play.