attempting fix to mutex issue