support container scope in ReferElement