logviewer rewrite.