changed protocol, created binary header for internal data transmission