getting snapshot functionality to work.