debugging --- current error in counter - recvMesgSize=-1