token and json support