added a thread in syncservice