sync script working