snapshot is not a function
fix hiding private data from clients
remove debug message
fix typo