device checking and setting up the syncing process