rewrote terrible log implementation