got the mutex working