basic class to get current input and output ports