fix some confusion over IDs, make downloads etc. work more reliably