updated the wrapper to newest api version