fighting NPE in SnapshotsFunction