add: save/load state to file
bugfixes