add grading heartbeat, and debug mode for future debugging