@wip saving, scanning, deleting files, logging