add logger and config back