soon after, carter invited gordon and gansa to join "the x-files" as supervising producers; gordon wrote or co-wrote several scripts each season, before departing from the series in 1997 to pursue other projects.