feature: scan documents; fixed: unlinking used files in /tmp