fixed a few issues with log