added debug recieve method