def METHOD_NAME(self,vals):
    print('oooo invoking: bidsRename with vals', vals);
    debug = self.parseBoolean(vals['debug'])
    exe = self.parseBoolean(vals['execute'])
    inpath = vals['inpath']
    oupath = vals['oupath']
    inpath = bids_utils.pathChk(inpath)
    if not oupath:
        tp = inpath.rsplit('/', 2)
        oupath = tp[0] + '/' + tp[1] + '_biswebpy_bidsRename/'
        if not os.path.exists(oupath):
            os.mkdir(oupath)
        else:
            print ('Output directory: ', oupath, ' already exists. Please move/delete that directory in advance to avoid conflicts.')
            sys.exit(0)
    else:
        oupath = bids_utils.pathChk(oupath)
    try:
        odata, elog, log = bidsRn.Rename(self.inputs['demographics'], inpath, oupath, \
        exe, debug)
    except:
        e = sys.exc_info()[0]
        print('---- Failed to invoke algorithm ----',e);
        return False
    self.outputs['ren_lut'] = bids_objects.bidsText();
    self.outputs['errorlog'] = bids_objects.bidsText();
    self.outputs['log'] = bids_objects.bidsText();
    self.outputs['ren_lut'].create(odata)
    self.outputs['errorlog'].create(elog)
    self.outputs['log'].create(log)
    self.outputs['ren_lut'].save(oupath  + 'checklist.txt')
    self.outputs['errorlog'].save(oupath + 'errorlog.txt')
    self.outputs['log'].save(oupath + 'log.txt')
    return True