vars{}, getvars(), outmode defines output as list or sgl