add date and add execptions catch in daemon