mutex to avoid threading print issues