add log helper and probably fixed multiblock detection code