wrapping works, but API has to be improved