configuration and errorhandler might be seperated from application