replace delay trick with real Write events checking