fixing port issues