added support for non-default port