slight changes in benchmarking code. all dirty hacking