add logger and config