added some basic 9-axis code