code for snapshot management

code for snapshot management. work in progress
Has this been flake'd as logger is unused....