fixed version of grader with checks for url