mods to make appendtext work for me