added implementation of progress measure taking into account internal process state