fix a multithreading bug, and have the artifact named cleanly.