extract open children as their own class