split local2remote and remote2local