fixed a bunch of log parsing bugs