taskstats reply function