new function to read snapshotconfig
worked on namings for snapshots