ensure netrc is available first