add network debug feature