hide hmatrix/hstatistics stuff behind a flag