added more functions to the sync engine