work on daemon template