added other values except for n_val and allow_multi to pb functions