makign things clearer
more robust munging
cleaning up possible error situations and returning an error
clean errors
imporved logging
amke uri passwords and user names work