add require 'tempfile' to resolve a previously autorequired resource