more changes across all fxns
with goal of converting to using httr when possible
and streamlining code