spring cleaning
no more segfaults in lua5.2 with more than 1 thread