support multiport in forward.c