handle index for exposed ports