stripping out gui stuff to create a usable thellier file