add sleep in friend to confirm catching pthreads