added task completion check; show stats