handle malformed coding
Add DirectorySyncSink implementation
fix typo