improved logging
improved logging
trying to implement protocol#encodePacket(...), not working for now