Changed receiveThread

- still stuck on receiveReply