server2: implement logic split for inner download loop
this also initializes the contents of the user provided
callback variables