add auth digest support
remove unsed code