fixes, move benchmark to example
better benchmark error management