updating sync script