updated to delete cache when downloads created