add getVarFrom in utils