fixing off into space bug
fixing c++0x doesn't work with threads bug