replay mode almost fully operational

dont look the commits