fixing logging bug i introduced