add config
add test for basic auth delegating