solving port problems