upgrade require_tmp