bug fixes in daemon controller