in reply to wait syntax for background process to complete
while (wait > -1) {}; [download]
wait; [download]