export snapshots functionality and test