rewrote port configs