download: make synchronous