working prototype for dchunks