fixed c method lookup, hopefully once and for all