using common compare function
completed sync feature - only update changed files
clean up logs