api change; removed tree, inserted md in extract return object