debug statements for download