client now does server detection