token command handling