fix read API