modified sendMessage & readMessage
merge fix