remove pthread completely