changes method to use a separate thread that downloads