fixed bug where provided port would not be used, but only the default port