added support for --port option