replaced "get_val" api (broken backward compatibility) to oop model (r6)