revert restore command, revert check command

check command code is on another branch.