change getSnapshot to return a list of string to the UI to print.