adding support for basic auth no election url