autocorrect ports to make automation eaiser