improved process for daemon
daemon restart WIP