fixed extract interface
fixed attribute_cast
parent check added to for_each_node