wip
wip
work on invoking C functions in other threads.