removing dead code, add fix for firefox bug for basic auth