digest method realm autodetection added

digest method realm autodetection added