add setInPortOption method