typo.. was outputting the file to the file.. whoops