general auth fixes
Merge pull request #30 from justinphelps/auth2

general auth fixes