gonna get rid of pthread stuff
submission to AJ