set up the mutex