added missing wrapper code