redirection and credential override bug. Closes #11 Closes #10