added ListPorts() and listports