fix classes Hub, NoFreePorts Exception, abstract PassiveElement, main