add support for setting port on startup