logging var fix, tests passed