use dict instead of free string for data field of token