added more debug details to failed downloading