quick fix to logging pattern