nearly working sync