fixing client.c to allow del
adding MAGIC_PING