include main do_snap.c to work with gadget snapshots