set port via variable