TS: parent categories support (2 levels)