snapshots generation script