ticket#2: fail to check existing token in local files