support for variable port number