add methods to implement file sync with current local and remote directory