update cgi script to handle new samples