work with http auth