still getting segfaults with text editing