debugging threading. Still v1
still fixing threading