deleteChunk(), bugfixes