serialising out required token data