robustify snapshot and __repr__