fixed problem with getting rid of port numbers - something about stack too deep