attempt at fixinf port stuff.