better sync script