fixed autodiscover syntax