added multithreaded lua call
fixes