hooks for benchmarking