fixed 401 response bugs
dfg