Fix bug with auth and add wget download