returning errors instead of logs in config