working insert with crude int->void*->int templating. what a jerk.