fixed up convertScans.cgi