first pass at sync script