deglobalized res_ports and docheck_hw_dups