add BASIC auth support