snapshots script cleaning