converted from basic to digest authentication