handle downloads, links and unlinks in a deterministic manner