sync example in readme with new api