restored download handler