sync-dir, logging tidy