adding debug to show received messages