forgot to fix 'extern c'