implemented dynamic filename resolution by the grader