updated readme for api change