minor declaration fix; temporary hack in Download to avoid crashes