add sync write