unified method used to call config