change service call so that config parameter are passed first