fixed a problem after killing the thread, added support for imported scripts, added send method to the thread, and you can get the thread id within