Changing the server protocol
Fix some bug with the communication