changed to only need port paramiter