daemon code completed