probably my mistake too... your typedefs are fine.