add progress counting