cannot write anything but .txt it seems