adds ability to handle http auth by default