adding in support for basic http auth