bugfix: return frame size on wire as per api description