fixed the purge bug, and made the logs a bit more sane