add logging comments