setup portD