add OAuth2 SCOPE and bz2 compress encrypt credentials