support for more secure curl stuff (netrc)

Prettier error handling
