clean up scoring algorithm; send full score data in CGI mode