multiple ports input supported