fix io and render