updated demolitions to use Tempfile instead of /tmp directory