added helper for HTTP auth