refactor supplant by merging attrs and text