modified grader to take url or file