fix saving and add run scripts