added simple thread test. that works. it's my code that is broken