master port stuff