started adding the ability to specify replay dir