added errorProcessor option