remove duplicate cpcap stdac code