missing changes for threads