added threaded c
it builds
partially working