support multi port config