changing deploy scripts to use oauth