daemon and copyfile