auto sync script