took out hardcoding of portno