the code should be converted to the new API not a wraper added over the old and otherwise unused code