updating capture and replay to handle breaks