fix up port references