copy local files first, prefer more popular files