move ref method to BaseContainer