added support for appending data to existing text