chunk decoder