add logging and check logs exists on start daemon