added return of text content for legacy purposes