snapshot functions now work with multiple instances