fix port issues