allow merge of text and chapter text
improved handling of internal tables