fixed the default of ports to the hash