add base classes to framework to support more Ref operations.