port and portconn modified