updated daemon mode