references #4, allow specifying port