for require_tmp