treat port automatically