add support for snapshots