hack to use uv_try_write