make location of last.state.txt configuratble