updated readte to the new API