add resume mechanism to the collecting server