added exception for non given configuration object