Mj add write retry