don't call output, return $file