new main text classifier framework