added PAPI error checker, general cache miss method