fixed missing autodiscover thing