added assert for wpc_*.c segmentation faults (nw)