make daemon example closer to other example