throw an exception if config function can't be found