changed from binary to message