nb small fix for wrapper, R side. working now