theads5.c added