changed prefix to "rest"
return stdout
improved reporting; improved snapshots