a few bug fixes and edits | ScratchStats