snapshotRepository was giving errors