changed return type of download callback