attempt to fix mutex issue