use command-line argument for directory in which to save state