added resync and smart sharing of files