add --replay command line argument