revised write api