fix bug in wrapping, add example / benchmark script