library fix, and print out stroke energy