add ws_ptocidr implemention