factor out 'sync string'