attempt to debug -1 mutex problem