instrumentation for BAM testing