yet another attempt to clean up the joint sensor processing.  i think this one works