minor refactors for HText