added basic auth arg to cli parsing
cleaned up some failure cases
runs but has lots of problems with 200s