debug code for drivetrain