Research into balance of rocks and underground cavities formation in the coal mine flowsheet when mining thin seams