some clean up and added pip_download_cache env var