debug changes for daemon