added logging to file sync