Update erps stuff to support port or port reference in service port.