add OpenPortChan function