rewrite to have $download_tools variable