flailing in the dark with c callbacks