switched to use new cwise api