fixed, 1. buggy list implementation 2. silent failure in thread_finalize. 3. several bugs in the lists