adding log command to daemon