add how to set ad and adfs