add get_var public acessor method (#13)