fixed seg fault, now mutex locks are issue