added support for error in configuration object