cleanup of daemon... now working