proc-revert_snapshot.php big fixex