fixed so logging writes to file instead of console