working on sync script