made functional the snapshot script, for now without a cron job