add container_apply to simplify routine to handle ContainerType