update readme to new api