added logging of the decoded massages