better syncing of directories