WIP: parse the packets received from the server (client side)