modfied register
merge zhangjc for replay
bug fix for resplay handling in proxyserver.cs