updated readme to reflect the latest API change