modified blocmetrics source