configure error controller