support chunk code