add (untested) chunk.apply