only download necessary files