threading client and server debug stuff