Simplify sref and sync loop, fix incoming remote patch bug