merge daemon in lib