moved methods from ChunkManager to Chunk.