writing to files now works! woo!