add remote state ahead/behind detection