adjust port settings