more bug fixes for applying masking in benchmarking scripts