update port settings