create a function to do the grading checks (on file or url)