fixed save to file, still has some pretty tight restrictions on usage to remain correct