grader works for both file and url