bone.getRestMatrix()

i am a bit confused about bone.getRestMatrix().

why doesn’t its worldspace option return worldspace coordinates? i have to additionally transform the result with the armature’s matrix.

restmatrix means that it returns the matrix of the rest position (the bone position in the armature’s edit mode) right? but for me it returns the position of the current frame.

what am i doing wrong?
how could i get the real rest position?

<edit> i skimmed through the forum and got a bit discouraged. does it even make sense to try exporting bone animation at the moment? are there any working examples? or should i better wait for the animation system overhaul? </edit>