fixed: port flags are unreliable when they are deregistered, so just check by name instead