added error callback in core config - close #545