intersect_file fixes