tried to fix broken block detection, not done yet