modified sync getsample safesync