in reply to xs question - is function_xs autogeneraged?

Erm, if you look in Copy.xs from that module you'll see the definition. Read perldoc perlxstut for a quick introduction to XS that (may :) get you less confuzzled.