modify gc_thread_func, ramdisk, some script files