major work done, digest auth working