implementation of the benchmark tool and bugfixing