deamonize and log