distinguish between port type