added chunk_rebuild()