introduce dirbased state for remote SCMs