allow some method to work on NamedElement instand of InstanceObject