update statistics and download functions