moved the thread call to ffd_dll.c