updating readme to new api