reduce redundant port settings