rename 'token' to 'token' in client