updated daemon example