testing saving to files