add category tree builder / flattener / indenter