preliminary grading stuff in the webhandler