adding support to modify the snapshotting behaviour