make sure to close debug log when closing collection
add fixme
make sure we reopen log after export
need to compare mediaList with nfd on macs

otherwise the server says we have file x and local code
doesn't notice it already exists