a script to help generate snapshots