add ChunkManager class