adding textOnly support (requested by Kerem)