add logger and config file