update daemon code