added files for in-thread functions, put up the generator