removed duplicate cod from run/run(int port) methods