updated the wrapping in the api