fixed a few subtle race conditions and now the tool seems to work robustly.
Attach a file by drag & drop or click to upload