add BASIC/DIGEST auth support