beginning to update casanova to new api