fixed issues with grading scripts