added an 'on downsync complete' handler