fixed some bug, add function refurbish_access_token