modify server to use uint8_t instead of char after realising that
chars were 4 bytes long on my machine
add new protocol to client