implemented daemon restart