small tweaks
test script for authorization code
API change