file saving works for arbitrary files now