Support for Basic Auth + better output handling