added a little port stuff