initial version of snapshot script